<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东左侧导航</title>
    <link rel="stylesheet" href="../CSS_Layout/CSS/reset.css">

    <style>
        a{
            color: black;
            font-size: 14px;
            text-decoration: none;
        }
        a:hover{
            color: #c81623;
        }
        .left-nav div{
            padding-left: 18px;
            height: 25px;
            /* 设置垂直居中，高度要和height保持一致 */
            line-height: 25px;
        }

        .left-nav div:hover{
            background-color: #d9d9d9;
        }

        .left-nav{
            width: 190px;
            height: 450px;
            margin:50px auto;
            padding: 10px 0;
            background-color: cornsilk;
        }

        body{
            background-color: #bfa;
        }
    </style>
</head>
<body>
    <nav class="left-nav">
        <div>
            <a href="#">家用电器</a>
        </div>
        <div>
            <a href="#">手机</a>/
            <a href="#">运营商</a>/
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
        <div>
            <a href="#">手机</a>
            <a href="#">运营商</a>
            <a href="#">数码</a>
        </div>
    </nav>
</body>
</html>